<?php
/**
 * Created by PhpStorm.
 * User: u
 * Date: 2018/12/27
 * Time: 11:45
 */
namespace common\sources\write\servicecharge;

use Yii;


class ServiceChargeAccess implements IServiceChargeAccess
{
    public function addServiceCharge($data)
    {
        return Yii::$app->db->createCommand()->insert('service_charge', [
            'bus_id' => $data['bus_id'],
            'service_name' => $data['service_name'],
            'money' => $data['money'],
            'ser_id' => $data['ser_id'],
            'task_commod_id' => $data['task_commod_id'],
            'task_id' => $data['task_id'],
            'num' => $data['num'],
            'create_time' => time()
        ])->execute();
    }
}